﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Task : MonoBehaviour
{
    // Start is called before the first frame update
    void Start()
    {
        EventCenter.GetInstance().AddEventListener<Monster>("MonsterDead", TaskWaitMonsterDeadDO);

    }

    // Update is called once per frame
    public void TaskWaitMonsterDeadDO(Monster info)
    {
        Debug.Log("当怪物死亡Task要做的事");
    }

    private void OnDestroy()
    {
        EventCenter.GetInstance().RemoveEventListener<Monster>("MonsterDead", TaskWaitMonsterDeadDO);
    }
}
